package com.service;

import com.entity.LotteryPrize;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @InterfaceName LotteryPrizeService
 * @Description TODO
 * @Author Kx
 * @Date 2025/6/18 9:28
 * @Version 1.0
 */
public interface LotteryPrizeService {

    /**
     * @author: kx
     * @date: 2025/6/18 9:32
     * @param lotteryPrize : 奖品信息
     * @description: 添加奖品信息
    */
    void addLotteryPrize(LotteryPrize lotteryPrize);

    /**
     * @author: kx
     * @date: 2025/6/18 10:23
     * @param lotteryPrize : 奖品信息
     * @description: 修改抽奖奖品信息
    */
    void updateLotteryPrize(LotteryPrize lotteryPrize);

    /**
     * @author: kx
     * @date: 2025/6/18 11:07
     * @return java.util.List<com.entity.LotteryPrize>
     * @description: 查询所有上架奖品信息
    */
    List<LotteryPrize> getAllLotteryPrizes();

    /**
     * @author: kx
     * @date: 2025/6/19 11:16
     * @param pageNum : 页码
     * @param pageSize : 每页数量
     * @return java.util.List<com.entity.LotteryPrize>
     * @description: 分页查询所有奖品信息
    */
    List<LotteryPrize> getPagedLotteryPrizes(Integer pageNum, Integer pageSize);

    /**
     * @author: kx
     * @date: 2025/6/19 11:36
     * @param keyword : 关键字
     * @param pageNum  : 页码
     * @param pageSize : 每页数量
     * @return java.util.List<com.entity.LotteryPrize>
     * @description: 根据关键字分页查询奖品信息
    */
    PageInfo<LotteryPrize> searchLotteryPrizesByKeyWord(String keyword, Integer pageNum, Integer pageSize);
}
